import Echart from '@/common/echart'
import _charts from '@/utils/chartConfig'

export default {
  components: { Echart },
  props: {
    config: {
      type: Object,
      default: () => ({}),
    }
  },
  data() {
    return {
      option: {},
    }
  },
  watch: {
    config: {
      handler(val) {
        this.resetOption(val)
      },
      immediate: true,
      deep: true,
    }
  },
}
